<script setup>
  
  const openNewTab = (url) => {
    window.open(url, '_blank');
  }
</script>

<template>
  <div class="network_box">
    <div class="h_title wow animate__animated animate__fadeInUp">Network</div>
    <div class="content_box">
      <div class="copntent_item">
        <div class="left">
          <div class="title wow animate__animated animate__fadeInUp">ZKC Mini Rollup</div>
          <div class="des wow animate__animated animate__fadeInUp">
            Empower developers with a turnkey solution for creating and operating zkWASM-based decentralized applications, including Fully On-Chain Games (FOCG)
          </div>
          <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-mini-rollup')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
          <div class="introduce">
            <div class="item wow animate__animated animate__fadeInUp">
              <div>
                <img src="@/assets/images/solutions_03.png" alt="">
                <div class="text">Complete Infrastructure For Launching <div>Your Own ZkWASM-based Layer 2</div></div>
              </div>
              <div>
                <img src="@/assets/images/solutions_02.png" alt="">
                <div class="text">Simplified Deployment And <div>Management Of ZkWASM DApps</div></div>
              </div>
            </div>
            <div class="item wow animate__animated animate__fadeInUp">
              <div>
                <img src="@/assets/images/solutions_12.png" alt="">
                <div class="text">Customizable Rollup Tailored To Your <div>Specific Application Requirements</div></div>
              </div>
              <div>
                <img src="@/assets/images/solutions_01.png" alt="">
                <div class="text">Seamless Integration With Ethereum<div>For Enhanced Security And Liquidity</div></div>
              </div>
            </div>
          </div>
        </div>
        <div class="right wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions1.png" alt="">
        </div>
      </div>
      <div class="copntent_item mar_top">
        <div class="left">
          <div class="title wow animate__animated animate__fadeInUp">ZKC Settlement Service</div>
          <div class="des wow animate__animated animate__fadeInUp">
            Leverage our zero-knowledge ready on-chain settlement solution for your decentralized applications
          </div>
          <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-settlement-service')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
          <div class="introduce">
            <div class="item wow animate__animated animate__fadeInUp">
              <div>
                <img src="@/assets/images/solutions_06.png" alt="">
                <div class="text">Easy Registration Process For DApps<div>To Utilize On-Chain Settlement</div></div>
              </div>
              <div style="margin-top: 40px;">
                <img src="@/assets/images/solutions_04.png" alt="">
                <div class="text">Integration With Various Data<div>Availability Layers For Enhanced</div><div>Reliability</div></div>
              </div>
            </div>
            <div class="item wow animate__animated animate__fadeInUp">
              <div>  
                <img src="@/assets/images/solutions_05.png" alt="">
                <div class="text">Secure And Verifiable<div>Settlement Of Complex Application</div><div>States</div></div>
              </div>
              <div>
                <img src="@/assets/images/solutions_07.png" alt="">
                <div class="text">Automated Dispute<div>Resolution</div><div>Mechanisms</div></div>
              </div>
            </div>
          </div>
        </div>
        <div class="right wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions2.png" alt="">
        </div>
      </div>
      <div class="copntent_item mar_top">
        <div class="left">
          <div class="title wow animate__animated animate__fadeInUp">ZKC WASM Execution Service</div>
          <div class="des wow animate__animated animate__fadeInUp">
            Experience server-side execution with the security and verifiability of zero-knowledge proofs
          </div>
          <div @click="openNewTab('https://docs.zkcross.org/solutions/zkc-wasm-execution-service')" class="learn_more wow animate__animated animate__fadeInUp">Learn more</div>
          <div class="introduce">
            <div class="item wow animate__animated animate__fadeInUp">
              <div>
                <img src="@/assets/images/solutions_08.png" alt=""> 
                <div class="text">Host And Execute WebAssembly<div>Code On ZKC Nodes</div></div>
              </div>
              <div style="margin-top: 30px;">
                <img src="@/assets/images/solutions_10.png" alt=""> 
                <div class="text">All Executions Provable By ZkWASM<div>Cloud For Enhanced Transparency</div></div>
              </div>
            </div>
            <div class="item wow animate__animated animate__fadeInUp">
              <div>
                <img src="@/assets/images/solutions_09.png" alt=""> 
                <div class="text">Server-Side Application Logic With<div>The Benefits Of Blockchain Security</div></div>
              </div>
              <div>
                <img src="@/assets/images/solutions_11.png" alt="">  
                <div class="text">Ideal For Applications Requiring High<div>Performance And Complex</div><div>Computations</div></div>
              </div>
            </div>
          </div>
        </div>
        <div class="right wow animate__animated animate__fadeInUp">
          <img src="@/assets/images/solutions3.png" alt="">
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.network_box {
  width: 100%;
  .h_title {
    font-weight: 600;
    font-size: 40px;
    color: #000000;
    padding-left: 2.6%;
  }
  .content_box {
    background: linear-gradient( 134deg, #010C21 0%, #145A73 100%);
    border-radius: 10px;
    padding: 3.54% 2.63%;
    margin-top: 3.2%;
    width: 100%;
    box-sizing: border-box;
    .mar_top {
      margin-top: 20px;
    }
    .copntent_item {
      background: #000000;
      border-radius: 15px;
      border: 1px solid #DEDEDE;
      padding: 2.2%;
      display: flex;
      .left {
        width: 50%;
        .title {
          font-weight: 600;
          font-size: 40px;
          color: #FFFFFF;
        }
        .des {
          font-weight: 300;
          font-size: 17px;
          color: #FFFFFF;
          margin-top: 15px;
          line-height: 30px;
        }
        .learn_more {
          background: rgba(255,255,255,0.26);
          border-radius: 47px 47px 47px 47px;
          border: 1px solid #FFFFFF;
          width: max-content;
          font-weight: 300;
          font-size: 16px;
          color: #FFFFFF;
          padding: 14px 20px;
          margin-top: 34px;
          cursor: pointer;
        }
        .introduce {
          margin-top: 55px;
          display: flex;
          padding-bottom: 30px;
          .item {
            margin-right: 30px;
            &:last-child {
              margin-right: 0px;
            }
            >div {
              display: flex;
              align-items: center;
              &:last-child {
                margin-top: 30px;
              }
              img {
                width: 28px;
                height: 31px;
              }
              .text {
                font-weight: 500;
                font-size: 17px;
                color: rgba(255,255,255,0.58);
                margin-left: 10px;
                line-height: 22px;
              }
            }
          }
        }
      }
      .right {
        width: 50%;
        display: flex;
        align-items: center;
        img {
          width: 100%;
        }
      }
    }
  }
}
</style>
